package com.cfg.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cfg.domain.ClaimProjectShow;
import org.apache.ibatis.annotations.Param;

public interface ClaimProjectShowMapper extends BaseMapper<ClaimProjectShow>  {

    /**
     * 经费管理中--项目筛选列表
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<ClaimProjectShow> selectClaimProjectList(@Param("page") Page<ClaimProjectShow> page, @Param("ew") Wrapper<ClaimProjectShow> queryWrapper);

    IPage<ClaimProjectShow> selectOutboundProjectList(@Param("page") Page<ClaimProjectShow> page, @Param("ew") Wrapper<ClaimProjectShow> queryWrapper);


    /**
     * 根据id获取项目信息，包含负责人和单位，关联了biz_person和BIZ_UNIT表
     * @param queryWrapper
     * @return
     */
    ClaimProjectShow selectClaimProjectOne(@Param("ew") Wrapper<ClaimProjectShow> queryWrapper);

    /**
     * 根据id获取项目信息，编号生成用
     * @param queryWrapper
     * @return
     */
    ClaimProjectShow selectClaimProjectClass(@Param("ew") Wrapper<ClaimProjectShow> queryWrapper);
}
